package com.shy;

import java.util.Objects;

/**
 * Created by huangyang on 2017/2/1.
 */
public abstract class Shape implements Cloneable {

    private String id;

    protected String type;

    abstract void draw();

    public String getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    void setId(String id) {
        this.id = id;

    }

    @Override
    public Object clone() {

        Object clone = null;
        try {
            clone = (Object) super.clone();
        }
        catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

        return  clone;
    }
}
